<template>
  <div class="banner">
    <van-swipe :autoplay="3000" :height="375" indicator-color="#fff">
      <van-swipe-item v-for="(item, index) in gallery" :key="index">
        <img v-lazy="item.img_url" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: {
    gallery: {
      type: Array,
      default() {
        return []
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.banner {
  margin-top: 44px;
  img {
    width: 100%;
  }
}
</style>